package com.morningstone.bamboo.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class FutureInfoDO implements Serializable {

    //成交记录Id
    private int id;
    //日期
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyyMMdd", timezone = "GMT+8")
    private Date date;
    //成交编号
    private String num;
    //开仓仓位(数量)
    private Double openHoldPositon;
    //开仓价
    private Double openPrice;
    //期货收盘价
    private Double closePriceOfFuture;
    //平仓仓位
    private Double closeHoldPositon;
    //平仓价
    private Double closePrice;
    //平仓盈亏
    private Double offSetGainAndLoss;
    //平仓手续费
    private Double closeServiceFee;
    //开仓手续费
    private Double openServiceFee;
    //创建时间
    @JsonFormat(pattern = "yyyyMMdd", timezone = "GMT+8")
    private Date createTime;
    private String longShort;
    private String openClose;
    //匹配编号id
    private int matchId;
    //成交记录业务编号
    private String tradeId;
    //匹配数量
    private double matchedQuantity;
    //剩余数量
    private double leftQuantity;
    //购销合同类型
    private String buySell;
    //计划Id
    private String planTimeId;
    //单位
    private String unit;
    //合约ID
    private String contractId;
    //套保净现值
    private Double netPresentValue;
    //单个合约的价值
    private Double totalValue;

    //购销合同Id
    private String purchaseSaleId;

    //远期-单价手续费
    private Double unitPrice;
    //远期-手续费
    private Double commission;

    //商品种类
    private String commodityType;

    //添加期货成交记录-交易业务员
    private String trader;

    private String account;

}
